package cn.edu.xmist.decorator;

public class Decorator extends AbstractDecorator {
    public Decorator(AbstractCamera camera) {
        super(camera);
    }

    @Override
    public void photo(){
        /**
         * 委托调用被装饰的方法
         */
        super.photo();

        this.doSomething();
    }

    private void doSomething() {
        System.out.println("增加水印");
    }
}
